package com.damage.materiel_dept.mapper;

import com.damage.common.entity.PurchaseInvoice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface IPurchaseInvoiceMapper {

    Integer insert(PurchaseInvoice purchaseInvoice);

    Integer setProcessInstanceId(@Param("id") Integer id,
                                 @Param("processInstanceId") String processInstanceId);

    Integer finishOrder(Integer orderId);

    PurchaseInvoice findById(Integer id);
}
